package com.zl.easybuy.vo;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(2000,"登录成功"),
    REGISTER_SUCCESS(2000,"注册成功"),
    LOGIN_FAIL(5000,"账号或密码错误！"),
    REGISTER_FAIL(5000,"注册失败"),
    OP_FAIL(1001,"操作失败"),
    OP_SCUUESS(2000,"操作成功"),
    ADD_CART_SUCCESS(2000,"添加购物车成功"),
    ADD_CART_FAIL(1002,"添加购物车失败"),
    MODIFY_FAIL(1002,"库存不足");
    private int code;
    private String msg;
    ResultCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
